<template>
  <div>

    <el-table :data="list" style="width: 100%;padding-top: 15px;">
      <el-table-column label="用户姓名" min-width="200">
        <!-- <template slot-scope="scope">
          {{ scope.row.order_no | orderNoFilter }}
        </template> -->
         <template slot-scope="scope">
          {{ scope.row.username }}
        </template>

      </el-table-column>
      <el-table-column label="价格" width="195" align="center">
        <template slot-scope="scope">
          ¥{{ scope.row.payment }}
        </template>
      </el-table-column>
      <el-table-column label="开具医师" width="100" align="center">
        <template slot-scope="scope">
          {{ scope.row.adminName }}
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
// import { transactionList } from '@/api/remote-search'
import { getPayment } from '@/api/pay'

export default {
  data() {
    return {
      list: null
    }
  },
  created() {
    this.fetchData()
  },
  methods: {
    fetchData() {
      getPayment({ pageNum: 1,
        pageSize: 10 }).then(response => {
        this.list = response.data.list
      })
    }
  }
}
</script>
